import request from '@/utils/request'

// 查询服务详情和商户中间列表
export function listMerchantanddetails(query) {
  return request({
    url: '/evaluate/merchantanddetails/list',
    method: 'get',
    params: query
  })
}

// 查询服务详情和商户中间详细
export function getMerchantanddetails(id) {
  return request({
    url: '/evaluate/merchantanddetails/' + id,
    method: 'get'
  })
}

// 新增服务详情和商户中间
export function addMerchantanddetails(data) {
  return request({
    url: '/evaluate/merchantanddetails',
    method: 'post',
    data: data
  })
}

// 修改服务详情和商户中间
export function updateMerchantanddetails(data) {
  return request({
    url: '/evaluate/merchantanddetails',
    method: 'put',
    data: data
  })
}

// 删除服务详情和商户中间
export function delMerchantanddetails(id) {
  return request({
    url: '/evaluate/merchantanddetails/' + id,
    method: 'delete'
  })
}
